import React from "react";

export default class Child extends React.Component{
    state = {
        msg:'123'
    }

    demo = () => {
        console.log(this.state.msg);
    }
    render(){
        return(
            <div>child</div>
        )
    }
}

